@echo off

::改变的文件列表
set files=%1

::for /F "tokens=*" %%m in ('D:/zhh/work/svnHook/checkTS.exe %files%') do (echo abc=%%m >&2)
::获取exe文件的输出内容
for /F "tokens=*" %%m in ('D:/zhh/work/svnHook/checkTS.exe %files% %a% %b% %c%') do (
set retCode=%%m
echo %%m >&2
)
::echo ret=%retCode% >&2

if %retCode% equ YES (goto suc) else (goto err)

:suc
exit 0

:err
echo 请点击[Abort]不要提交,先规范处理代码 >&2
exit 1

pause


